﻿using SqlSugar;
using TiaoTiaoCode.BasicDbCore;

namespace TiaoTiaoCode.Quartzer.Entities
{
    /// <summary>
    /// 定时任务表
    /// </summary>
    [SugarTable("quartz_jobs", TableDescription = "定时任务")]
    public class QuartzJobs : BaseEntity
    {
        /// <summary>
        /// 任务名称
        /// </summary>
        [SugarColumn(ColumnName = "job_name", Length = 100, IsNullable = true, ColumnDescription = "任务名称")]
        public string? JobName { get; set; }

        /// <summary>
        /// 任务编码
        /// </summary>
        [SugarColumn(ColumnName = "job_code", Length = 100, IsNullable = true, ColumnDescription = "任务编码")]
        public string? JobCode { get; set; }

        /// <summary>
        /// Cron表达式
        /// </summary>
        [SugarColumn(ColumnName = "cron_expression", Length = 100, IsNullable = true, ColumnDescription = "Cron表达式")]
        public string? CronExpression { get; set; }

        /// <summary>
        /// 任务状态
        /// </summary>
        [SugarColumn(ColumnName = "job_status", Length = 10, IsNullable = true, ColumnDescription = "任务状态")]
        public string? JobStatus { get; set; }
    }
}
